package com.wallet.Exception;

/**
 * @author
 * @version 1.0
 * @description 自定义异常类
 * @date 2023/2/27 0027 19:42
 */
public class WalletException extends RuntimeException{
    private String errMessage;
    public WalletException(){super();}
    public WalletException(String errMessage){
        super(errMessage);
        this.errMessage=errMessage;
    }
    public static void cast(String errMessage){
        throw new WalletException(errMessage);
    }
}
